package cn.acac.yygh.cmn;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan(value = "cn.acac.yygh.cmn.mapper")
@EnableTransactionManagement    // 开启事务管理
@ComponentScan(value = "cn.acac.yygh")
@EnableDiscoveryClient
public class CmnApplication {
    public static void main(String[] args) {
        SpringApplication.run(CmnApplication.class,args);
    }
}
